Questions
9 of 13
1What role does Qdrant play in a typical RAG architecture, and what happens on either side of it in the pipeline?
2How would you design chunking and metadata so that retrieved chunks can be traced back to their source document and section for citation?
3A RAG system is returning chunks that are topically related but don't actually answer the user's question. How would you improve retrieval quality?
4How would you handle access control in a RAG system where different users are only permitted to retrieve chunks from documents they have permission to view?
5Why might you keep conversation-turn embeddings in a separate, short-lived collection rather than mixing them into your main document knowledge base?
6How would you model 'users who liked this also liked' recommendations using Qdrant's recommend/discovery query modes?
7How would you incorporate business signals like popularity or recency into a similarity-based recommendation without abandoning vector search entirely?
8What cold-start problem exists for a new item or new user in a vector-similarity recommendation system, and how might you mitigate it?
9How would you evaluate whether a change to your recommendation retrieval pipeline actually improved results, before rolling it out to all users?
10Design a Qdrant-backed search feature for a SaaS product with thousands of small customers, each with their own private dataset. What collection and sharding strategy would you use?
11One large enterprise tenant has 100x more data than a typical tenant in your shared multitenant collection. What problems could this cause, and how would you address them?
12How would you offer per-tenant usage metrics (storage, query volume) in a shared multitenant Qdrant deployment?
13What is the tradeoff of offering tenants a 'bring your own embedding model' option in a shared collection?
09 / 13

How would you evaluate whether a change to your recommendation retrieval pipeline actually improved results, before rolling it out to all users?

Offline relevance metrics plus a staged A/B rollout

The evaluation has two stages: offline and online. Offline, you compute relevance metrics on a held-out dataset using a ground-truth definition of relevance. The standard metrics are nDCG (normalized discounted cumulative gain) and MRR (mean reciprocal rank) for ranking quality, and recall@k for coverage. For recommendation, the ground truth is typically derived from user interactions - items the user engaged with in the future are treated as relevant, and the metrics measure how well the new pipeline ranks those items. The offline evaluation is fast, cheap, and lets you compare many variants, but it has a well-known limitation: it measures ranking quality against a fixed ground truth, which may not reflect the actual user experience or the business metrics that matter. A pipeline can improve nDCG while hurting click-through, so offline results are necessary but not sufficient. The online stage is a staged A/B test: the new pipeline is deployed to a small fraction of traffic, and the metrics that matter (click-through, conversion, retention, revenue) are compared with the control group. The staged approach limits the blast radius of a bad change and gives a statistically sound comparison.

The mechanism that makes this work is that the two stages answer different questions. Offline evaluation answers 'does the new pipeline rank relevant items higher on the historical data?' Online evaluation answers 'does the new pipeline produce better outcomes for real users?' The offline stage filters out clearly bad changes and lets you iterate quickly; the online stage validates the ones that pass. The offline ground truth is the key design decision: if it is derived from future interactions, it captures the user's actual preferences; if it is derived from a hand-labeled set, it captures expert judgment but may not reflect the user population. The online experiment must control for confounding - the treatment and control groups must be sampled from the same population, the time period must be the same, and the metrics must be pre-registered to avoid p-hacking. The experiment should run long enough to reach statistical significance, which depends on the effect size and the traffic volume. A common practice is to run for at least one week to capture weekly patterns, and to use a sequential test or a fixed-horizon test with a pre-computed sample size.

  1. 1

    Offline metrics: nDCG, MRR, recall@k against a ground truth derived from future interactions or hand labels.

  2. 2

    Offline ground truth: future interactions capture user preferences; hand labels capture expert judgment.

  3. 3

    Offline limitations: does not measure business outcomes; can be overfit.

  4. 4

    Online A/B test: deploy to a small traffic fraction and compare with control.

  5. 5

    Metrics: click-through, conversion, retention, revenue - the metrics the business cares about.

  6. 6

    Statistical rigor: pre-register metrics, run long enough for significance, control for confounders.

  7. 7

    Staged rollout: start small, increase traffic as confidence grows.

  8. 8

    Guardrail metrics: watch for regressions in latency, error rates, or other non-target metrics.

The trade-off is between speed and confidence. Offline evaluation is fast but imperfect; online evaluation is definitive but slow and risky. The right balance is to use offline to filter and online to validate, with a staged rollout that limits the risk. The common mistake is to ship on offline metrics alone, which can lead to a change that improves nDCG but hurts revenue. The second mistake is to run an A/B test without enough traffic or for too short a time, producing a result that is not statistically significant or that is confounded by a seasonal effect. The third mistake is to not pre-register the metrics, so the analysis becomes a search for a metric that happens to improve. The fourth mistake is to ignore guardrail metrics, so a change that improves the target metric but increases latency or error rates slips through. The fifth mistake is to evaluate only the retrieval pipeline in isolation, without considering the reranking and generation stages downstream - a change in retrieval can have non-obvious effects on the final answer quality. Version note: the evaluation methodology is version-independent, but the Qdrant features you are evaluating (quantization, hybrid search, reranking) have evolved across releases, so re-run the offline evaluation after upgrading Qdrant.

javascript

Version-dependent: the evaluation methodology is version-independent, but the Qdrant features being evaluated (quantization, hybrid search, reranking) have evolved across releases. If the new pipeline uses a feature that is version-specific, benchmark it on the version you plan to deploy. The offline evaluation uses the same Qdrant API as production, so the query_points API shape (qdrant-client 1.10+) applies.

Difficulty: 7/10
Topics: Recommendations, Evaluation, A/B Testing

Scenario Questions

0-2 years experience
  1. 1

    You change the recommendation pipeline and it feels better in testing. Explain why you cannot ship on that basis alone.

  2. 2

    A teammate says nDCG is the only metric you need. Explain what it misses.

2-5 years experience
  1. 1

    Your offline evaluation shows a 5% improvement in nDCG but the A/B test shows no change in click-through. Diagnose the gap.

  2. 2

    You need to evaluate a new reranking model. Describe the offline evaluation and the online experiment.

5-8 years experience
  1. 1

    Design an evaluation framework for a recommendation system that combines offline metrics, online A/B tests, and guardrail metrics.

  2. 2

    You need to compare five candidate pipelines. Describe how you would use offline evaluation to narrow the field and online evaluation to pick the winner.

8+ years experience
  1. 1

    You are designing an experimentation platform for a recommendation system that supports continuous deployment. Describe the assignment, the metrics, the statistical tests, and how you handle novelty effects and interference.

  2. 2

    Derive the sample size needed for an A/B test to detect a 1% change in click-through at 95% confidence, and explain how you would decide whether the experiment is worth running.

Follow-up Questions

  • How would you construct the ground truth for offline evaluation, and what biases would you expect from using future interactions as relevance labels?
  • If the offline metric improves but the online metric does not, what are the possible explanations and how would you investigate?